Merge isArray with other functions

No need to define an isArray separately.