Modification to prevent PHP notice.