Couple of microoptimizations

No need to do ifset before empty or !empty because empty always checks if its set
and I profiled php to see if its better to do ( is_array() && !empty()) or ( !empty() && is_array())
and the later wins out.  If it is an array it is very slightly faster but if it's not an array it is around 40% faster

Tiny improvements though, no need to do these all over the place was just looking for stuff happening places that are called very often