add is_array() check so subscripts on a string don't erroneously return TRUE on <= php 5.3