line 35 is redundant - it's tested on line 29 above and strictly it's not even needed... you will either be able to use the link in the email or not and that test is sufficient