Added is_array() and fixed reorder warnings.