def div_check (int x, int y) try / x y return false catch divzeroerror return true end try end