def has_keys(data, keys):
    """
    Checks whether a dictionary has all the given keys.
    @type   data: dict
    @param  data: Parameter name
    @type   keys: list
    @param  keys: list containing the expected keys to be found in the dict.
    @rtype: bool
    @return: True if all the keys are found in the dict, false otherwise.
    """
    if not isinstance(data, dict):
        return False
    has_all = True
    for key in keys:
        if key not in data:
            has_all = False
            break
    return has_all