check for null class value