It's a little weird to me that the proximity arg gets defaulted to an empty array and then you check length here. Might as well leave it undefined and just check whether it's truthy here?