Here you  need to return an Exploit::CheckCode constant, probably Exploit::CheckCode::Unknown is the return check which better fits here