Added first if statement

Added first if statement