def if_not_null(data, f):
    """
    Execute the given function if the data is not null
    :param data:
    :param f:
    :return: f(data) if data != None, else None
    """
    if data:
        return f(data)
    return None