Get the first element or throw an exception if there is no such element.
T the first element
if sequence is empty.
Get the first element by condition or throw an exception if there is no such element.
filter condition