check whether the function exist or not first, to avoid Fatal error: Cannot redeclare...