ADDED default null in case it's a normal php error