Updated config doc and check in code

!empty conflicts with $this->config['count'] == false.

empty() is true when a value is false, so !empty($this->config['count']) && $this->config['count'] == false can never be evaluated to true.Should use isset instead of !empty.