def check_if_user_is_researcher(user):
    """
    Function for checking if this user is researcher or not.

    :param user: User
        User for checking.

    :return:
        True if this user is researcher, False otherwise.
    """
    return user.groups.filter(name='researcher').exists()