I stumbled on this situation when refactoring a function to return an object rather than an array, but I forgot to update the return value inside the if statement. I will never down vote but urge Devs to think about this as opposed to have null / vacant checks inside https://conscientparqgurugram.in/