Perform a check before including the view instead of verifying in the view