I am always using the following code to check if an index exists and is not null:
if(!(isset($_POST['service']) and $_POST['service']))
die('The service parameter is not available.');
Here I am checking two conditions. Is it possible to do it using a single buit-in function? eg:-
if(!isSetAndNotNull($_POST['service']))
die('The service parameter is not available.');