Fix condition validation

Signed-off-by: Adam Engebretson <adam@enge.me>