add initialization check for when a hidden layer hasnt been pretrained yet