Check If Empty Array Javascript Documentation