def _get_assertions(env):
    """Extracts assertions from the environment (Options) or returns an empty
     list otherwise."""
    if env.options["assertions"] is not None:
        return env.assertions
    else:
        return []