updated patch with additional checks where request method may not be populated