diff --git a/src/Fenom/Modifier.php b/src/Fenom/Modifier.php index 35b675a..9cccfa9 100644 --- a/src/Fenom/Modifier.php +++ b/src/Fenom/Modifier.php @@ -157,4 +157,12 @@ class Modifier { } return false; } + + /** + * @param $value + * @return bool + */ + public static function isIterable($value) { + return is_array($value) || ($value instanceof \Iterator); + } }