private function process_inarray($needle, $haystack)
    {
        foreach ($haystack as $stalk) {
            if ($needle === $stalk[0]) {
                return true;
            }
        }

        return false;
    }
private function process_inarray($needle, $haystack)
    {
        foreach ($haystack as $stalk) {
            if ($needle === $stalk[0]) {
                return true;
            }
        }

        return false;
    }
private function process_inarray ( $ needle , $ haystack ) { foreach ( $ haystack as $ stalk ) { if ( $ needle === $ stalk [ 0 ] ) { return true ; } } return false ; }
checks an array if process name is in

@param mixed $needle   what to find
@param array $haystack where to find

@return boolean true - found<br>false - not found
checks an array if process name is in