protected function checkParam($param, string $glue = ' '): string
    {
        if (is_array($param)) {
            $param = implode($glue, $param);
        }

        return $param;
    }
protected function checkParam($param, string $glue = ' '): string
    {
        if (is_array($param)) {
            $param = implode($glue, $param);
        }

        return $param;
    }
protected function checkParam ( $ param , string $ glue = ' ' ) : string { if ( is_array ( $ param ) ) { $ param = implode ( $ glue , $ param ) ; } return $ param ; }
Check if param is array or string and implode with glue if necessary.

@param string|array $param
@param string $glue
@return string
Check if param is array or string and implode with glue if necessary .