Check for nil class