I stumbled on this problem when refactoring a perform to return an object instead of an array, but I forgot to update the return value inside the if statement. DughDugh 17111 silver badge33 bronze badges 1 This really is precisely what I required. A lot nicer to operate with than https://smartworlddeveloper.co.in/