This function is actually always returning an array, even thought it can be empty. The `?` doesn't seem to be required here.