check if option is set using find instead of splitString