[copyrights] Don’t define function if it already exists