Replace array_search that only uses a boolean to check whether the value