discipline null check