Slight change as it looks like has_stockrecord is not returning the correct value