Checking if the current element is an OPTION tag, replacing the check on its parent