Checking for index in options hash to remove annoying warn message