minor cleanup of empty checks in static package

- no need to check if len(fileMappings) == 0 since range will skip over
  it if it's empty anyway
- prefer `x == ""` for checking empty strings instead of len(), since
  it's more obvious that it's a string check