Check Key Exist In Array Javascript Methods And Functions