It is of no use for foreigners. We study those rules for many years at school. The second o in хорошо can be easily checked with the word хорОший, while the first one must be learnt by heart.