moved if statement outside of leaderboard haml