preg_replace_callback fix for undefined notice