If you are just looking to see if filters is null or an empty array, a simple not operator would work...
If you want to check if it's an array but not null:
PHP:
!$filter && is_array($filter)
A lot of different ways you can do it, just depends on how "loose" you want to be with the logic.