I think this would be better:     
    getTypeInspector().isArray()