Updated condition to manage category extension.