Checks if this has a parent, and optionally, if it is parent.
If parent is null then this function returns
true if this has any parent at all. If parent
is non-null then true is only returned if
this is a child of parent.
| this |
input File |
| parent |
the parent to check for, or null |
|
true if this is a child of |