re: Using isset() and empty() hurts your code VIEW POST

TOP OF THREAD FULL DISCUSSION
re: Hi Aleksi, Good article, thank you. For me it turned something that was more than a "vague feeling" into reasonable position. There is one thing ...
 

Just a style thing, but I agree... e.g. $customer instanceof Customer is less explicit than a null test and won't work with things like null object pattern or duck typing.

code of conduct - report abuse