Fixed indentation to match project's
Removed unnecessary if