Better (working) way of checking that fields exist.