Prevent class from being 'null'