checking if value is not 0 on condition like