Test for input attributes before attempting to access them