Added ability to check whether a given layout exists or not