def validate_campaign(campaign):
 return (campaign and (campaign in campaigns.get_campaigns()))

def validate_campaign ( campaign ) : return ( campaign and ( campaign in campaigns . get_campaigns ( ) ) )
non-view helper function that validates campaign .