profile null check