If modifying this, personal preference would be: return (_selectedAccessory && [_selectedAccessory isConnected]);