These Nested If Statements Could Be Combined