change controller code to check if Ladder.empty?