does this fail if you do not include the `if` statement?  it seems redundant to me.