Stricter validation of boolean values