Added the testing whether the theme exists or not.