diff --git a/src/select.js b/src/select.js
index <HASH>..<HASH> 100644
--- a/src/select.js
+++ b/src/select.js
@@ -239,7 +239,7 @@ angular.module('ui.select', [])
   _searchInput.on('keydown', function(e) {
     // Keyboard shortcuts are all about the items,
     // does not make sense (and will crash) if ctrl.items is empty
-    if (ctrl.items.length > 0) {
+    if (ctrl.items && ctrl.items.length >= 0) {
       var key = e.which;
 
       $scope.$apply(function() {
Escape key was not being handled when no items are found in a search.