Simplify part of php code

Signed-off-by: Frca <killerfrca@gmail.com>