diff --git a/src/widgets/SelectWidget.js b/src/widgets/SelectWidget.js
index <HASH>..<HASH> 100644
--- a/src/widgets/SelectWidget.js
+++ b/src/widgets/SelectWidget.js
@@ -332,11 +332,7 @@ OO.ui.SelectWidget.prototype.unbindKeyDownListener = function () {
  * @return {OO.ui.OptionWidget|null} Outline item widget, `null` if none was found
  */
 OO.ui.SelectWidget.prototype.getTargetItem = function ( e ) {
-	var $item = $( e.target ).closest( '.oo-ui-optionWidget' );
-	if ( $item.length ) {
-		return $item.data( 'oo-ui-optionWidget' );
-	}
-	return null;
+	return $( e.target ).closest( '.oo-ui-optionWidget' ).data( 'oo-ui-optionWidget' ) || null;
 };
 
 /**
Simplify OO.ui.SelectWidget#getTargetItem

$#data can be called on an empty collection, so we can remove the length check.

Change-Id: Ic7fb<I>b<I>dd8f5d<I>f3ac<I>f<I>d<I>d7