This looks strange. Maybe better to check 'exists'?