nn func  check not null object