diff --git a/spacy/language.py b/spacy/language.py
index <HASH>..<HASH> 100644
--- a/spacy/language.py
+++ b/spacy/language.py
@@ -239,7 +239,7 @@ class Language(object):
         if not hasattr(component, '__call__'):
             msg = ("Not a valid pipeline component. Expected callable, but "
                    "got {}. ".format(repr(component)))
-            if component in self.factories.keys():
+            if component in self.factories:
                 msg += ("If you meant to add a built-in component, use "
                         "create_pipe: nlp.add_pipe(nlp.create_pipe('{}'))"
                         .format(component))
Fix component check in self.factories (see #<I>)