Better way to check if method is GET