Checks for the existence of post or get info. Note that the only 2 options are 'post' (which does not need to be explicitly stated or 'get' which does. Essentially you are looking for the existence of get or post, but nothing else specific about it.
If nothing is passed, it checks for $_POST. You can also do