Socket :: isOpen() uses is_resource()
Helper :: getDomain() uses Error::getLast()
docs