Added checkOnlyOptions function