Remove duplicate #to_i check