version 1.0.0 - controller class fix - check the variable availability before returning it