Remove argument that is accessible as attribute
Only check that the option exists once instead of doing on each conditional
Invert conditional to avoid double checking for Regexp
Remove short circuit return in favor of simple conditional