All this if block is equivalent to `$conditions = (array)$conditions`