added php check