Remove unnecessary '0 !=' in if statement