I stumbled on this situation when refactoring a function to return an item instead of an array, but I forgot to update the return price Within the if statement. I will not down vote but urge Devs to think about this as an alternative to have null / vacant checks https://smartworlddeveloper.co.in/