Fixed issue with ternary shorthand operator and qnap php