def _validate_plan_name(plan_name, plans):
    """Only accept plans names that are in the given list of plan descriptions."""
    for plan in plans:
        if plan['name'] == plan_name:
            return True