Erector extension for conditional classes