Make composeFetchHead more succinct
Refactor refs.readExists to use isRef()