def param_is_legal(p, gm):
    """Returns whether a given parameter is allowed (present in the
    variable list) or not.

    :param p: parameter under scrutiny
    :param gm: the graphyte module object
    :return: Boolean. True if found, False if not
    """
    return p in gm.allowed_parameters