Removed extraneous if

Issue #1.