I stumbled on this situation when refactoring a purpose to return an item instead of an array, but I forgot to update the return value In the if assertion. I will never down vote but urge Devs to consider this as an alternative to have null / empty checks inside https://whitelandgurugram.co.in/