Static method to test that cache array is valid

Tests that a value is array and the array contains certain keys that
contain values of the correct type.

To be implemented in a following commit that will take care of #6
Style alignment phpMyCache

Applying styling rules to phpMyCache.php
Adding docblock for phpMyCache::isCacheValid()
Adding validity check on imported cache data

Fixes #6