I find that $_SERVER['REQUEST_METHOD'] is sometimes set to GET or POST even when there has been no form submitted for that particular page, so I wouldn't advise using that method.