takeFirst() method remplaced for Travis config