Use more accurate checks for options and onClick properties by actually looking at their values.

They could be component names too otherwise.