Better way to check variable for null or empty string?

Here is the simple PHP function for testing given data is null or empty string.

I hope you like this Post, Please feel free to comment below, your suggestion and problems if you face - we are here to solve your problems.