Removed wp_get_themes check and extra type check for array