range check for .getoptions

adds a range check for getoptions to prevent issue some users were having