Added if Statement

Added if Statement