I found this situation when refactoring a function to return an item instead of an array, but I forgot to update the return value In the if assertion. I am banging my head on my desk with this particular binding mistake.. I have checked quite a few in the postings https://emperiumgurugram.in/