Detect invalid condition