def user_has_github_account(user):
    """Check if the user has a Github account linked.

    Args:
        user (User): User to check.

    Returns:
        bool: If the user has a Github account linked.
    """
    return len(user.social_auth.filter(provider="github")) > 0