def has_frames(self, destination):
session = meta.Session()<EOL>sel = select([model.frames_table.c.message_id]).where(<EOL>model.frames_table.c.destination == destination)<EOL>result = session.execute(sel)<EOL>first = result.fetchone()<EOL>return first is not None<EOL>
Whether specified queue has any frames.

@param destination: The queue name (destinationination).
@type destination: C{str}

@return: Whether there are any frames in the specified queue.
@rtype: C{bool}