check if opts exist or not