Check component type before evaluating