src/helper_loader.php
private function validate_helper_input( $helper ) {
		if ( ! is_array( $helper ) || empty( $helper ) ) {
			return false;
		}

		if ( !  isset( $helper[ 'name' ] ) || ! isset( $helper[ 'class' ]  ) ) {
			return false;
		}

		//if not set, set callback name to "helper"
		if ( ! isset( $helper[ 'callback' ] ) ) {
			$helper[ 'callback' ] = 'helper';
		}

		return $helper;

	}
private function validate_helper_input( $helper ) {
		if ( ! is_array( $helper ) || empty( $helper ) ) {
			return false;
		}

		if ( !  isset( $helper[ 'name' ] ) || ! isset( $helper[ 'class' ]  ) ) {
			return false;
		}

		//if not set, set callback name to "helper"
		if ( ! isset( $helper[ 'callback' ] ) ) {
			$helper[ 'callback' ] = 'helper';
		}

		return $helper;

	}
private function validate_helper_input ( $ helper ) { if ( ! is_array ( $ helper ) || empty ( $ helper ) ) { return false ; } if ( ! isset ( $ helper [ 'name' ] ) || ! isset ( $ helper [ 'class' ] ) ) { return false ; } //if not set, set callback name to "helper" if ( ! isset ( $ helper [ 'callback' ] ) ) { $ helper [ 'callback' ] = 'helper' ; } return $ helper ; }
Make sure each helper passed in is valid.

@todo ensure helper class/callback are callable. Preferably, without creating object of the class.

@param array $helper Array to add helper with.

@return bool|array Returns the array if valid, false if not.
Make sure each helper passed in is valid .