This is not my favorite if statement ever. Its mostly two copies of the same thing but it looks correct. 
Nothing more clever springs to mind though. 

lgtm