use !=None instead of >0