removed arguments.length test when returnArray option is set