Can you clean up this if statements please, they could be merged.