Seems like the inUse var isn't actually needed for anything and you could simply resolve with a literal boolean.