How can I do a conditional inside of a conditional?