Check If Value Is Empty Array Javascript Documentation