code: protected static function validate( $type, $data, $admin ) {
  
  		$place = ( isset( $data['place'] ) ) ? $data['place'] : 'front';
  
  		$place = $admin && 'admin' == $place || ! $admin && 'front' == $place;
  
  		if ( ! $place || self::set_params( $type, $data ) === false ) {
  			return false;
  		}
  
  		return true;
  	}
docs: Validate file register.
  
  @since 1.0.4
  
  @param string $type  → script|style.
  @param array  $data  → settings.
  @param bool   $admin → if is admin.
  
  @return boolean