replace browserHistory.count by browserHistory.isEmpty