I'm not sure whether `Array.isArray` is the best thing to use. It might not work on old IEs that YUI is supposed to support: http://yuilibrary.com/yui/environments/