Use `OR` instead of `||`, as per the [style guide](http://ellislab.com/codeigniter/user-guide/general/styleguide.html).

Also, both of these expressions produce the same result - you're not doing a comparison by type. A simple `empty()` check would be cleaner.