lib/Accessible/MethodManager/CollectionManager.php
public static function collectionContains($needle, $haystack)
    {
        foreach ($haystack as $value) {
            if ($value === $needle) {
                return true;
            }
        }

        return false;
    }
public static function collectionContains($needle, $haystack)
    {
        foreach ($haystack as $value) {
            if ($value === $needle) {
                return true;
            }
        }

        return false;
    }
public static function collectionContains ( $ needle , $ haystack ) { foreach ( $ haystack as $ value ) { if ( $ value === $ needle ) { return true ; } } return false ; }
Indicates wether given collection contains the wanted item or not.

@param  mixed $needle
@param  array $haystack

@return bool
Indicates wether given collection contains the wanted item or not .