Adding check for layout on data.

Adding a check to see if layout is on data if it's not on the template directly.
0.2.11