How to process data from api response then return a boolean value synchronously in angular

visit shbcf.ru