Added a cute little way to make sure attributes are present in layouts.

Signed-off-by: Atheriel <atheriel@gmail.com>