Why checking twice? If the `filters` is `null` it will not pass first check anyway, so `!is_array()` should be enough.