Modify boolean achieve

I think this has duplicate function for check boolean. So i rewrite this realization function and  delete lines that not used.