This function will return false if the theme does not exist and true if it does. On true the function will define the THEME constant.
If the theme is incorrect this function will select another theme to prevent site not from loading correctly.
If the theme is incorrect this function will select another theme to prevent site not from loading correctly.