Checking if dept is null