Added if statement

Summary: Fixes T13

Test Plan: run make test

Maniphest Tasks: T13

Differential Revision: http://code.peteftw.com/D15