Detect rather than select.first