[util] Helpers: add isArray() method