Extra validation on the create_fields function to allow a $field to be false

Signed-off-by: Elliot Condon <e@elliotcondon.com>