How can I shorten if else statement inside every() callback function

join shbcf.ru