How to refresh if website timeout?

I’m a newbie so how do I make it refresh the page and try loading the site again if it timeout?

use command refresh

How do I make it refresh if it timeout?

Open url
Check for any element
If element doesn’t exist. Refresh