putting some variable checking in place, it should protect us from oddball values
initialized the array to avoid php error log notices
updating the method signature to match the base implementation