ensure aliases is an array