Add route check function