maybe fixed NPE cause in objectHasOption