Don't perform actions if index is -1