The following condition is often checked, may be refactored ?