Can we change the variable name here to $used or $inUse so this isn't confusing to read?