should this be outside of the `if`? Not sure //cc @scrapcodes