Use 'unless' instead of 'if not'
Msf::Exploit::Remote::HttpClient already provides 'peer'