headCondition
Checks if the given condition on the head element of the queue is satisfied.
Return
true if the condition is satisfied by the head element, false otherwise.
Parameters
cond
the condition to be applied to the head element.