`array_merge()` is not really needed here. You could have set a simple `$criteria` where you would have added criteria one after another.