public static bool hasDoc(Doc document)
Checks if the document is valid
Parameters
document | The instance of Doc to check |
Returns
If the specified document handle is valid, it returns true. Otherwise, it returns false and error-handler is called.