looks like you can combine this in the below if statement