Fixed: If statement was incomplete for $amount