updated __construct phpdoc
added check for array in loadObject