Sir Mo Farah has confirmed that he'll only run the marathon in the Olympics if he thinks he can win a medal.