check to ensure the request method is defined