change null check to has in session