Please return CheckCode::Appears as pointed by the guideline available here: https://github.com/rapid7/metasploit-framework/wiki/How-to-write-a-check()-method