diff --git a/lib/fastlane/actions/cert.rb b/lib/fastlane/actions/cert.rb
index <HASH>..<HASH> 100644
--- a/lib/fastlane/actions/cert.rb
+++ b/lib/fastlane/actions/cert.rb
@@ -16,7 +16,7 @@ module Fastlane
           # This should be executed in the fastlane folder
 
           values = params.first
-          if values.kind_of?Array
+          unless values.kind_of?Hash
             # Old syntax
             values = {}
             params.each do |val|
diff --git a/lib/fastlane/actions/sigh.rb b/lib/fastlane/actions/sigh.rb
index <HASH>..<HASH> 100644
--- a/lib/fastlane/actions/sigh.rb
+++ b/lib/fastlane/actions/sigh.rb
@@ -13,7 +13,8 @@ module Fastlane
         require 'credentials_manager/appfile_config'
 
         values = params.first
-        if values.kind_of?Array
+
+        unless values.kind_of?Hash
           # Old syntax
           values = {}
           params.each do |val|
Added support for hashes and arrays when using cert and sigh integration