check WP version instead of existence of function