Corrects function in_array and her usage