Use the m_isXXXSet flags and friends instead of checking for < 0

Change-Id: I6f796f25ed9f460689f0ede7c7d0cc7489cf15ab
Reviewed-by: J-P Nurmi <jpnurmi@digia.com>