diff --git a/lib/neo4j/active_node/query/query_proxy_methods.rb b/lib/neo4j/active_node/query/query_proxy_methods.rb
index <HASH>..<HASH> 100644
--- a/lib/neo4j/active_node/query/query_proxy_methods.rb
+++ b/lib/neo4j/active_node/query/query_proxy_methods.rb
@@ -110,10 +110,9 @@ module Neo4j
         end
 
         def exists_query_start(origin, condition, target)
-          case
-          when condition.class == Fixnum
+          if condition.class == Fixnum
             self.where("ID(#{target}) = {exists_condition}").params(exists_condition: condition)
-          when condition.class == Hash
+          elsif condition.class == Hash
             self.where(condition.keys.first => condition.values.first)
           else
             self
if is cheaper than case, switch in query_proxy_methods