public static function has_stdin() {
		$handle  = fopen( 'php://stdin', 'r' );
		$read    = array( $handle );
		$write   = null;
		$except  = null;
		$streams = stream_select( $read, $write, $except, 0 );
		fclose( $handle );

		return 1 === $streams;
	}