Detect wrong component

fixes #23
Brace in the same line as the `unless`