Checking if parent, start elements and key are provided