added if statement

hi.