def is_contact_operation(message):
    """
    Checks that message has operation with contacts (add/del).
    Return (action, user, contact) or None.
    """
    try:
        if message['action'] == 'add_contact' or message['action'
            ] == 'del_contact':
            return message['action'], message['user'], message['contact']
    except Exception:
        pass
    return None
