refined divied by zero checker