Check If Value Is Empty Array Javascript Push Notifications