Instead of:
https://github.com/poldracklab/fmriprep/blob/4c54ca4f855d4f560c7c4abdbbbcb4fb3a60bae6/fmriprep/workflows/bold/base.py#L147
we may want to do something like:
entities = layout.parse_file_entities(ensure_list(ref_file)[0])
multiecho = "echo" in entities
May I suggest to address this in the context of #1803 ?