I'll say remove the first three "Then", I'm not a fan of checking for things that are not in the page