Refactored the if statement and just using the ||