I found this problem when refactoring a perform to return an object in place of an array, but I forgot to update the return benefit In the if statement. J0HNJ0HN 27k55 gold badges5858 silver badges8888 bronze badges 5 93 The complete context (most-upvoted remedy) is good, but this answer was https://smartworlddeveloper.co.in/