MODX snippet for returning different content based on the http request type