[fix] arrayToString in /system/Cryptography

Hello,

When viewing a db I had an error on the method in the Cryptography arrayToString file. 

If the "$array" was empty then the foreach give me an error. With a condition to check if the "$array" is a array then there is no problem with the foreach.