Code not working - See who's online - PHP JSON

but the weird thing is that this code below works to check if someone is online… Is there a way to grab their name and game they are playing with the function below? All I want to output is something like “[name] is playing [game]”

function is_channel_live( $channel )
{
	
    $request = json_decode( @file_get_contents( 'https://api.twitch.tv/kraken/streams/' . $channel ) );
    return ( ! is_null( $request->stream ) ) ? TRUE : FALSE;
	
}