Introducing utility functions to check request method