refactor 'all' method
 refactor internal isArray function
refactor 'all'