Use dict.get() for all attempts to retrieve fcode