def is_registered(delegate):
    """
    Returns True if delegate is present and a keypad has been assigned.
    :param delegate: User object
    :return: bool
    """
    return delegate is not None and hasattr(delegate, 'keypad') and delegate.is_present