<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def has_protocol(self, name):
 """Tells if a certain protocol is available"""


    return self.query(Protocol).filter(Protocol.name==name).count() != 0