diff --git a/lib/phonelib.rb b/lib/phonelib.rb
index <HASH>..<HASH> 100644
--- a/lib/phonelib.rb
+++ b/lib/phonelib.rb
@@ -10,4 +10,4 @@ module Phonelib
   }
 end
 
-autoload :PhoneValidator, 'validators/phone_validator' if defined? ActiveModel || defined? Rails
+autoload :PhoneValidator, 'validators/phone_validator' if defined?(ActiveModel) || defined?(Rails)
fixed condition checking ActiveModel or Rails presence