This could be moved as `elseif($options)` of is_array