Make sure we have a node before checking its properties.