null check for model on group constructor