So if you really want to troll someone, you can put them in quotes.
if "[" "$foo" "==" "bar" "]"; then ...