Refactored "check if in use" case