DEV Community

Discussion on: Using isset() and empty() hurts your code

Collapse
 
johncip profile image
jmc • Edited

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.