new null check method implemented