update1 -- creating conditionals to check for wp existence before initaiting