refactoring

did the let go of the if else statement and switched to or operator