Made izAnArray compatible with versions lower than es5. Added a test case