public function isArray($value, $checkIsEmpty = false)
    {
        if (is_array($value) === true || $value instanceof ArrayAccess) {
            if ($checkIsEmpty === false) {
                return true;
            }

            return $this->count($value);
        }

        return false;
    }
public function isArray($value, $checkIsEmpty = false)
    {
        if (is_array($value) === true || $value instanceof ArrayAccess) {
            if ($checkIsEmpty === false) {
                return true;
            }

            return $this->count($value);
        }

        return false;
    }
public function isArray ( $ value , $ checkIsEmpty = false ) { if ( is_array ( $ value ) === true || $ value instanceof ArrayAccess ) { if ( $ checkIsEmpty === false ) { return true ; } return $ this -> count ( $ value ) ; } return false ; }
Checks if the input is an array or arrayaccess object, optionally it can also check if it's
empty.

@param mixed $value        the variable to check
@param bool  $checkIsEmpty if true, the function will also check if the array|arrayaccess is empty,
and return true only if it's not empty

@return int|bool true if it's an array|arrayaccess (or the item count if $checkIsEmpty is true) or false if it's
not an array|arrayaccess (or 0 if $checkIsEmpty is true)
Checks if the input is an array or arrayaccess object optionally it can also check if it s empty .