Check to see if component type is actually defined before accessing array index.