Revert "using in_array instead of checkIfResultAlreadyThere()"

This reverts commit 47f1b74597156891fc10bda13a50adb02cb70cd0.