findOrCreate returns additional flag to tell whether the entry was found or created

In response to #405 (which was wrongly closed)