Updated documentation links and only execute legacy code if the functions exists (in case if Gravity Forms removes the functions in a future release).