diff --git a/lib/active_interaction/filters/array_filter.rb b/lib/active_interaction/filters/array_filter.rb
index <HASH>..<HASH> 100644
--- a/lib/active_interaction/filters/array_filter.rb
+++ b/lib/active_interaction/filters/array_filter.rb
@@ -59,12 +59,10 @@ module ActiveInteraction
     # @return [Array<Class>]
     def classes
       result = [Array]
+      return result unless Object.const_defined?(:ActiveRecord)
+      return result unless ActiveRecord.const_defined?(:Relation)
 
-      if ActiveRecord.const_defined?(:Relation)
-        result.push(ActiveRecord::Relation)
-      end
-
-      result
+      result.push(ActiveRecord::Relation)
     end
 
     # @param filter [Filter]
Don't assume ActiveRecord is available