public function is_installed( $args, $assoc_args = array() ) {
		$theme = wp_get_theme( $args[0] );

		if ( $theme->exists() ) {
			WP_CLI::halt( 0 );
		} else {
			WP_CLI::halt( 1 );
		}
	}
public function is_installed( $args, $assoc_args = array() ) {
		$theme = wp_get_theme( $args[0] );

		if ( $theme->exists() ) {
			WP_CLI::halt( 0 );
		} else {
			WP_CLI::halt( 1 );
		}
	}
public function is_installed ( $ args , $ assoc_args = array ( ) ) { $ theme = wp_get_theme ( $ args [ 0 ] ) ; if ( $ theme -> exists ( ) ) { WP_CLI :: halt ( 0 ) ; } else { WP_CLI :: halt ( 1 ) ; } }
Checks if a given theme is installed.

Returns exit code 0 when installed, 1 when uninstalled.

## OPTIONS

<theme>
: The theme to check.

## EXAMPLES

# Check whether theme is installed; exit status 0 if installed, otherwise 1
$ wp theme is-installed hello
$ echo $?
1

@subcommand is-installed
Checks if a given theme is installed .