Boolean comparison causes extremely slow compilation

This question, or at least this answer, appears to come up frequently.

@DeskA Your method hasItems can be written on one line like this, however it will then exhibit the slow compilation I guess

return store.storage?.items.isEmpty == false

or you could try this

extension Optional where Wrapped == Bool {
	var isFalse: Bool {
		return self == false
	}
}

return (store.storage?.items.isEmpty).isFalse

You can also do it this way (but I don't like this style)

return store.storage?.items.isEmpty ?? false