Made select return an empty array rather than nil