check for active model before using it