I think this and line above should be $pretty_years as it's only used in scalar context here?