Wrap WPML functions in function_exists just to be sure