moved configuration block into if

.. to prevent error while importing when this property was not set
Merge pull request #1 from thisismana/patch-1

moved configuration block into if