if (file == null)
if (is == null)
  public static Value fread(Env env,			    @NotNull StreamResource file,			    int length)  {    try {      if (file == null)	return BooleanValue.FALSE;      TempBuffer tempBuf = TempBuffer.allocate();      byte []buffer = tempBuf.getBuffer();      if (buffer.length < length)	length = buffer.length;      length = file.read(buffer, 0, length);      Value s;      if (length > 0) {	BinaryBuilderValue bb = new BinaryBuilderValue(buffer, 0, length);	TempBuffer.free(tempBuf);	return bb;      }      else {	TempBuffer.free(tempBuf);	return BooleanValue.FALSE;      }    } catch (IOException e) {      throw new QuercusModuleException(e);    }  }