eliminate php divide by zero error