removed redundant condition
makes it easier to read and understand